package fr.paris.lutece.plugins.pac.web.pacuser;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import fr.paris.lutece.plugins.genericjpa.service.IGenericJPAService;
import fr.paris.lutece.plugins.genericjpa.web.GenericJPAJspBean;
import fr.paris.lutece.plugins.pac.bean.pacuser.Pacuser;
import fr.paris.lutece.portal.service.template.AppTemplateService;
import fr.paris.lutece.util.html.HtmlTemplate;


/**
 * The Pacuser Jsp Bean
 * @author jchaline
 */
public class PacuserJspBean extends GenericJPAJspBean<Integer, Pacuser>
{

    private static final long serialVersionUID = 4056641770117704752L;

    public static final String RIGHT_MANAGE_PACUSER = "PAC_PACUSER_MANAGEMENT";

    private static final String TEMPLATE_MANAGE_PACUSER = "admin/plugins/pac/manage_pacuser.html";

    @Override
    public String doDeleteBean( HttpServletRequest request )
    {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public String getDeleteBean( HttpServletRequest request )
    {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public String doSaveBean( HttpServletRequest request )
    {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public String getSaveBean( HttpServletRequest request )
    {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public String getManageBean( HttpServletRequest request )
    {
        Map<String, Object> model = super.getManageBeanModel( request );

        HtmlTemplate template = AppTemplateService.getTemplate( TEMPLATE_MANAGE_PACUSER, getLocale( ), model );

        return getAdminPage( template.getHtml( ) );
    }

    @Override
    protected IGenericJPAService<Integer, Pacuser> getBeanService( )
    {
        // TODO Auto-generated method stub
        return null;
    }

}